package org.pine.api.beans.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * id请求体
 *
 * @author pine
 * @version 1.0
 * @since 2025-04-10 15:02
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(description = "id请求体")
public class IdRequest<ID> implements Serializable {

    @Serial
    private static final long serialVersionUID = 5017175529447177798L;

    @Schema(title = "id", description = "id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "id不能为空")
    private ID id;
}
